﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CollegeRevApp.DataModels
{
    /// <summary>
    /// Class for storing basic information about a college.
    /// </summary>
    public class College
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Location { get; set; }
        public string Description { get; set; }
        public int StudentCount { get; set; }
        public int FacultyCount { get; set; }
        public float? AverageRating { get; set; }

        //public virtual List<Review> Reviews { get; set; }

        public College()
        {

        }
        public College(string name, string location, string description, int studentCount, int facultyCount)
        {
            Name = name;
            Location = location;
            Description = description;
            StudentCount = studentCount;
            FacultyCount = facultyCount;

        }

        public void SetProperties(College college)
        {
            Name = college.Name;
            Location = college.Location;
            Description = college.Description;
            StudentCount = college.StudentCount;
            FacultyCount = college.FacultyCount;
        }
    }
}
